package com.sinbader.xiaole.common.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import com.sinbader.xiaole.common.entity.Warehouse;
import com.sinbader.xiaole.common.model.params.WarehouseParam;
import com.sinbader.xiaole.common.model.result.WarehouseResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 仓库 服务类
 * </p>
 *
 * @author LuoYong
 * @since 2020-04-16
 */
public interface WarehouseService extends IService<Warehouse> {

    /**
     * 新增
     *
     * @author LuoYong
     * @Date 2020-04-16
     */
    void add(WarehouseParam param);

    /**
     * 删除
     *
     * @author LuoYong
     * @Date 2020-04-16
     */
    void delete(WarehouseParam param);

    /**
     * 更新
     *
     * @author LuoYong
     * @Date 2020-04-16
     */
    void update(WarehouseParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author LuoYong
     * @Date 2020-04-16
     */
    WarehouseResult findBySpec(WarehouseParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author LuoYong
     * @Date 2020-04-16
     */
    List<WarehouseResult> findListBySpec(WarehouseParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author LuoYong
     * @Date 2020-04-16
     */
     LayuiPageInfo findPageBySpec(WarehouseParam param);

}
